package MODELE;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;

import MODELE.DONNEE.ChampColonne;
import MODELE.DONNEE.Donnee;

public class Modele extends Document {
	private String nom;


	protected ArrayList<Donnee> listedonnee = new ArrayList<Donnee>();
	
	public void saveTexte(){
		try {
			FileWriter fw = new FileWriter(new File("vincent."+this.extention));
			listedonnee = ChampColonne.miseAniveaux(listedonnee, 5, 15);
			fw.write(listedonnee.toString());
			fw.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public String getNom() {
		return nom;
	}

	protected void setNom(String Nom) {
		this.nom = Nom;
	}

	public ArrayList<Donnee> getListedechamps() {

		return listedonnee;
	}

	public void setListedechamps(ArrayList<Donnee> Listedechamps) {
		listedonnee = Listedechamps;
	}

}
